package com.mingtai.design.pattern.creationalming.builder;

/**
 * @description: 构建者模式测试类
 * @author: mingtai
 * @createDate: 23:59 2021/1/5
 * @version: 1.0
 *
 * 举例：ypOfflineApiTest #getParam3
 */

public class Test {
    public static void main(String[] args) {
        // 构建
        Course course = new Course.CourseBuilder().builderCourseName("设计模式").builderCoursePPt("设计模式PPT")
                .builderCourseVideo("设计模式video").builderCourseArticle("设计模式手记")
                .builderCourseQA("设计模式问答").build();
        /*构建完成*/
        System.out.println(course);
    }
}



